package com.xiaozhengkeji.colastartboot.base.services;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.colastartboot.base.entitys.SystemUser;
import com.xiaozhengkeji.colastartboot.base.mapper.SystemUserMapper;import java.util.List;

@Service
public class SystemUserService {

    @Resource
    private SystemUserMapper systemUserMapper;


    public int deleteByPrimaryKey(Integer uid) {
        return systemUserMapper.deleteByPrimaryKey(uid);
    }


    public int insert(SystemUser record) {
        return systemUserMapper.insert(record);
    }


    public int insertSelective(SystemUser record) {
        return systemUserMapper.insertSelective(record);
    }


    public SystemUser selectByPrimaryKey(Integer uid) {
        return systemUserMapper.selectByPrimaryKey(uid);
    }


    public int updateByPrimaryKeySelective(SystemUser record) {
        return systemUserMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(SystemUser record) {
        return systemUserMapper.updateByPrimaryKey(record);
    }

    public List<SystemUser> queryByAll(SystemUser systemUser) {
        return systemUserMapper.queryByAll(systemUser);
    }

    public List<SystemUser> queryByUsernameAndPassword(String username, String password) {
        return systemUserMapper.queryByUsernameAndPassword(username, password);
    }

    public List<SystemUser> queryByUsernameLike(String likeUsername) {
        return systemUserMapper.queryByUsernameLike(likeUsername);
    }

    public List<SystemUser> queryByUsername(String username) {
        return systemUserMapper.queryByUsername(username);
    }

    public List<SystemUser> queryByEmailAndPassword(String email, String password) {
        return systemUserMapper.queryByEmailAndPassword(email, password);
    }

    public List<SystemUser> queryByEmailLike(String likeEmail) {
        return systemUserMapper.queryByEmailLike(likeEmail);
    }

    public List<SystemUser> queryByEmail(String email) {
        return systemUserMapper.queryByEmail(email);
    }
}




